require.config({
  baseUrl: 'scripts/libs',
  paths: {
    jq: 'jq.amd'
  }
});

require(['jq'], function({ $on, $id }) {
  $on($id('pay'), 'click', function() {
    $id('result').innerText = $id('price').value * $id('count').value;
  });
});
